package de.kardass.jannobatch.examples.simple.third;

import de.kardass.jannobatch.ItemProcessor;

public class ThirdStep2 implements ItemProcessor<ThirdB, ThirdC> {

	@Override
	public void onStartUp() {
		System.out.println("     " + getClass() + "-> init");
	}

	@Override
	public void onShutDown() {
		System.out.println("     " + getClass() + "-> finish");
	}

	@Override
	public ThirdC process(ThirdB item) {
		ThirdC c = new ThirdC(item.getName() + "-StepTwo");
		System.out.println("     ..." + getClass() + "-> processing input: " + item);
		return c;
	}

}
